/*
 * @Author: Ln
 * @Date: 2021-04-25 21:36:37
 * @LastEditors: Ln
 * @LastEditTime: 2021-04-25 22:55:36
 * @Description: 注释
 */
// vite.config.js
import {
    defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'

import vitePluginImp from 'vite-plugin-imp'

// https://vitejs.dev/config/
export default defineConfig({
    define: {
        'process.env': {baseUrl:'/'}
    },
    plugins: [
        vue(),
        vitePluginImp({
            libList: [{
                libName: 'vant',
                style(name) {
                    if (/CompWithoutStyleFile/i.test(name)) {
                        // This will not import any style file 
                        return false
                    }
                    return `vant/es/${name}/style/index.js`
                }
            },],
        })
    ]
})